package cn.sym.org.service.impl;

import cn.sym.basic.util.PageList;
import cn.sym.org.domain.Employee;
import cn.sym.org.mapper.EmployeeMapper;
import cn.sym.org.service.IEmployeeService;
import cn.sym.basic.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author sym
 * @since 2022-02-21
 */
@Service
public class EmployeeServiceImpl extends BaseServiceImpl<Employee> implements IEmployeeService {
    @Autowired
    private EmployeeMapper employeeMapper;

    @Override
    public List<String> loadPermissionSnByLogininfoId(Long id) {
        return employeeMapper.loadPerssionSnByLogininfoId(id);
    }

    @Override
    public List<Employee> getEmp(Long shopId) {
        return employeeMapper.getEmp(shopId);
    }
}
